package com.wbpay.sdk.http;

/**
 * Created by ck01- on 2017/6/19.
 */

public class Response<T> {
    private String code;
    private String msg;
    private T obj;
    private T objList;

    public Response() {
    }

    // 构造函数，初始化code和msg
    public Response(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public T getObj() {
        return obj;
    }

    public void setObj(T obj) {
        this.obj = obj;
    }

    public T getObjList() {
        return objList;
    }

    public void setObjList(T objList) {
        this.objList = objList;
    }

    @Override
    public String toString() {
        return "Response{" +
                "code='" + code + '\'' +
                ", msg='" + msg + '\'' +
                ", obj=" + obj +
                ", objList=" + objList +
                '}';
    }
}
